//
//  FGRedemView.m
//  Mi6App
//
//  Created by Mr.Lemon on 8/30/13.
//  Copyright (c) 2013 4G Secure. All rights reserved.
//

#import "FGRedemView.h"

@implementation FGRedemView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/


-(void)setViewWithVoucher:(FGVoucherInfo*)voucherObj{
    
    self.lblTimeRemain.text=voucherObj.expiredDate;
    self.lblDescription.text=voucherObj.title;
    self.lblVoucherLocation.text=voucherObj.shopName;
    self.lblVoucherNote.text=voucherObj.note;
    self.imgVoucherCode.image=[UIImage imageNamed:@""];
}


- (IBAction)onBtnRedemClick:(id)sender {
    
    [self removeFromSuperview];
}

- (IBAction)onBtnCancelClick:(id)sender {
}
@end
